<style lang='scss' type='stylesheet/scss' scoped>
.as-button {
  margin-bottom: 10px;
}
</style>
<template>
  <div>
    <as-h2>按钮文字及类型</as-h2>
    <as-card :text="text"
             title="传入 cancel-button-text 可以修改取消按钮的文字，传入 cancel-button-type 可以修改取消按钮的类型，传入 confirm-button-text 可以修改确认按钮的问题，传入 confirm-button-type 可以修改确认按钮的类型">
      <as-popconfirm title="确认提交？" confirm-button-text="确认提交" cancel-button-text="取消提交" confirm-button-type="danger" cancel-button-type="success">
        <as-button type="primary">提交</as-button>
      </as-popconfirm>
    </as-card>
  </div>
</template>

<script type="text/ecmascript-6">
import { mapGetters } from "vuex";
export default {
  name: "",
  computed: {
    ...mapGetters(["isMobile"])
  },
  data() {
    return {
      text: `<template>
   <as-popconfirm title="确认提交？" confirm-button-text="确认提交" cancel-button-text="取消提交" confirm-button-type="danger" cancel-button-type="success">
     <as-button type="primary">提交</as-button>
   </as-popconfirm>
 </template>`
    };
  },
  methods: {}
};
</script>
